package cn.wolfcode.wolf2w.adv.controller;

import cn.wolfcode.wolf2w.common.core.domain.R;
import cn.wolfcode.wolf2w.common.security.annotation.RateLimit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@RestController
public class TestController {
    @RateLimit(value = 10)
    @GetMapping("/test1")
    public R<?> test1(){
        return R.ok("进来了");
    }

    @GetMapping("/test2")
    public R<?> test2(int a, int b, int c, int d,String sign){
        return R.ok(Arrays.asList(a,b,c,d,sign));
    }
}
